<p class="validateTips">请输入以下内容.</p>

<form id="memberForm" action="<?php echo URL::site("boMember/insertOrUpdate")?>" method='post' enctype="multipart/form-data">
<?php 
	if ($model != null) {
		echo '<input type = "hidden" name = "id" value="'.$model->id.'"/>';
	}
?> 
<table id="supplier" class="ui-widget ui-widget-content" width="100%">
	<tr>
		<td width="30%">用户名*</td>
		<td><input type="text" <?php if ($model != null) echo 'value="'.$model->username.'"'?> name="username" id="username" class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>密码*</td>
		<td><input type="password" <?php if ($model != null) echo 'value="'.$model->password.'"'?> name="password" id="password" class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>联系人</td>
		<td><input type="text" <?php if ($model != null) echo 'value="'.$model->contact.'"'?> name="contact" id="contact" class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>电话</td>
		<td><input type="text" <?php if ($model != null) echo 'value="'.$model->phone.'"'?> name="phone" id="phone" class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>手机</td>
		<td><input type="text" <?php if ($model != null) echo 'value="'.$model->telephone.'"'?> name="telephone" id="telephone" class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>邮箱</td>
		<td><input type="text" <?php if ($model != null) echo 'value="'.$model->email.'"'?> name="email" id="email" class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>地址</td>
		<td><input type="text" <?php if ($model != null) echo 'value="'.$model->address.'"'?> name="address" id="address" class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>QQ</td>
		<td><input type="text" <?php if ($model != null) echo 'value="'.$model->qq.'"'?> name="qq" id="qq" class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>微信</td>
		<td><input type="text" <?php if ($model != null) echo 'value="'.$model->weixin.'"'?> name="weixin" id="weixin" class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>微博</td>
		<td><input type="text" <?php if ($model != null) echo 'value="'.$model->weibo.'"'?> name="weibo" id="weibo" class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>备注</td>
		<td><textarea name="desc" id="desc" class="text ui-widget-content ui-corner-all desc"><?php if ($model != null) echo $model->desc?></textarea></td>
	</tr>
</table>
</form>
